// components/buttomlead/buttomlead.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    bottom:{
      type:Array,
      value:[]
    },


  },

  /**
   * 组件的初始数据
   */
  data: {

   

  },

  /**
   * 组件的方法列表
   */
  methods: {
    onChangeShowState1: function () {
      var that = this;
      that.setData({
        showView1: (!that.data.showView1)
      })
    },
    bottomJump: function (e) {
      console.log(e.currentTarget.dataset.bottomitemdata)
      if ("首页" === e.currentTarget.dataset.bottomitemdata) {
        wx.navigateTo({
          url: '../../pages/end/end'
        })
  
      } else if ("活动" === e.currentTarget.dataset.bottomitemdata) {
        wx.navigateTo({
          url: '../../pages/end1/end1' 
        })
      } else if ("收藏" === e.currentTarget.dataset.bottomitemdata) {
        wx.navigateTo({
          url: '../../pages/end2/end2'
        })
      } else if ("我的" === e.currentTarget.dataset.bottomitemdata) {
        wx.navigateTo({
          url: '../../pages/end3/end3'
        })
      }
    }

  }
})
